package com.woniu.supermarket.mapper;

import com.woniu.supermarket.entity.Outbound;
import com.woniu.supermarket.vo.OutboundVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OutboundMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Outbound record);

    Outbound selectByPrimaryKey(Integer id);

    List<Outbound> selectAll();

    int updateByPrimaryKey(OutboundVo outboundVo);

    List<OutboundVo> selectOutboundByCons(@Param("outboundNumber") String outboundNumber, @Param("status") Integer status);

    int insertOutbound(OutboundVo outboundVo);

    int updateByCode(@Param("status")Integer status,@Param("code")String code);
}